// 自动生成模板SmsCouponSpuRelation
package biz

import "github.com/go-kratos/kratos/v2/log"

// smsCouponSpuRelation表 结构体  SmsCouponSpuRelation
type SmsCouponSpuRelation struct {
	Id       *int    `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`             //id
	CouponId *int    `json:"couponId" form:"couponId" gorm:"comment:优惠券id;column:coupon_id;size:19;"`  //优惠券id
	SpuId    *int    `json:"spuId" form:"spuId" gorm:"comment:spu_id;column:spu_id;size:19;"`          //spu_id
	SpuName  *string `json:"spuName" form:"spuName" gorm:"comment:spu_name;column:spu_name;size:255;"` //spu_name
}

// TableName smsCouponSpuRelation表 SmsCouponSpuRelation自定义表名 sms_coupon_spu_relation
func (SmsCouponSpuRelation) TableName() string {
	return "sms_coupon_spu_relation"
}

type SmsCouponSpuRelationRepo interface {
}

type SmsCouponSpuRelationUsecase struct {
	repo SmsCouponSpuRelationRepo
	log  *log.Helper
}

func NewSmsCouponSpuRelationUsecase(repo GreeterRepo, logger log.Logger) *SmsCouponSpuRelationUsecase {
	return &SmsCouponSpuRelationUsecase{repo: repo, log: log.NewHelper(logger)}
}
